<?php
$url = $this->Html->url(array('controller' => 'media', 'action' => 'player', '5'));
?>
<a onclick="openPopup('<?php echo $url;?>','newpopup');">open</a>
